<#include "layout.html"/>
<@layout>
<h2 class="sub-header">
留言列表
</h2>
<div class="table-responsive">
  <table class="table table-striped">
    <thead>
      <tr>
        <th>序号</th>
        <th>内容</th>
        <th>时间</th>
        <th>昵称</th>
        <th>Email</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
    	<#list page.list as message>
    	<tr>
	        <td>${message.id}</td>
	        <td>${message.content}</td>
	        <td>${message._dateTime}</td>
	        <td>${message.nick}</td>
	        <td>${message.email}</td>
	        <td>
	        	<a class="btn btn-danger" href="${path}/admin/message/delete/${message.id}.html" role="button"><span class="glyphicon glyphicon-trash"></span>删除</a>
	        </td>
	    </tr>
		</#list>
    </tbody>
  </table>
</div>
 <div class="pull-right">
 	<@pagination prefix="&q=${q!}" pageNum=page.pageNumber totalPage=page.totalPage/>
 </div>
</@layout>
